home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
metkit
/
scandisk.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-06-07
|
1KB
|
30 lines
// Copyright (C) 1996, 1997 Meta Four Software. All rights reserved.
//
// Recursive directory scanner sample code
//
//! rev="$Id: scandisk.h,v 1.3 1997/05/27 00:06:16 jcw Rel $"
/////////////////////////////////////////////////////////////////////////////
// The following properties are used in this code
extern c4_ViewProp pFiles;
extern c4_IntProp pParent, pSize, pDate;
extern c4_StringProp pName;
// Derive from this mixin class to handle status updates and idle time
class cStatusHandler
{
public:
virtual bool UpdateStatus(const char* text);
};
// Scan a directory tree and return a corresponding structure for it.
// The data structure of the object returned by this routine is:
// [parent:i, name:s, files [name:s, size:i, date:i]]
extern c4_View fScanDirectories(const char* path_, cStatusHandler* =0);
// Reconstruct the full path name from a subdirectory index in the tree
extern CString fFullPath(c4_View& dirs_, int dirNum_);
/////////////////////////////////////////////////////////////////////////////